﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DataModel.PublicModel.MeterModel
{
    /// <summary>
    /// 表模型定义
    /// </summary>
    public class Meter
    {
        string meterName;
        List<Point> points;
        /// <summary>
        /// 仪表名称
        /// </summary>
        [Newtonsoft.Json.JsonProperty(PropertyName = "meterName")]
        public string MeterName
        {
            get
            {
                return meterName;
            }

            set
            {
                meterName = value;
            }
        }

        /// <summary>
        /// 仪表下的点
        /// </summary>
        [Newtonsoft.Json.JsonProperty(PropertyName = "points")]
        public List<Point> Points
        {
            get
            {
                if (points == null)
                    points = new List<Point>();
                return points;
            }

            set
            {
                points = value;
            }
        }
    }
}
